package task.manager;

//import static org.junit.Assert;
import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * @author Harrison
 *
 */
public class UserAccountTest extends TestCase{

	UserAccount testAccount;
	String username;
	String password;
	Category testCat;
	
	public void setUp(){
		username = "myUsername";
		password = "myPassword";
		testCat = new Category("testCat");
		testAccount = new UserAccount(username, password);
	}
	/**
	 * Test method for {@link task.manager.UserAccount#addCategory(task.manager.Category)}.
	 */
	public void testAddCategory(){
		Assert.assertTrue("CategoryList not empty after initilization.", testAccount.getCategories().getCategoryArray().size()==0);
		testAccount.addCategory(testCat);
		Assert.assertTrue("Category not added to empty CategoryList", testAccount.getCategories().getCategoryArray().size()>0);
	}
}
